import random

def generate_test_case(n: int = 9, max_height: int = 10) -> list[int]:
    """生成随机测试用例"""
    return [random.randint(1, max_height) for _ in range(n)]

def get_sample_case() -> list[int]:
    """返回示例测试用例"""
    return [1, 8, 6, 2, 5, 4, 8, 3, 7]